home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / edit / xnot16.zip / NOTGNU.ST < prev    next >
Text File  |  1994-03-25  |  4KB  |  125 lines

  1. ;
  2. ; Sample startup file for notGNU emacs (notgnu.st).
  3. ; Last modified Fri Feb 4 1994, by Tor Slettnes
  4. ; This type of file can be loaded at anytime using
  5. ; the extended command M-x load-file.
  6. ;
  7.  
  8. ; Default is to make backups; uncommenting the following
  9. ; line will turn backups off.
  10. ; (toggle-make-backups)
  11.  
  12.  
  13. ; Default is to NOT check whether a file is edited in two
  14. ; places at once; the following will enable this check.
  15. ; Slow on floppy drives.
  16. (toggle-check-file-timestamp)
  17.  
  18.  
  19. ; Default is not to display linenumber in the modeline; 
  20. ; The following toggles line numbers on.
  21. (toggle-show-linenumber)
  22.  
  23.  
  24. ; Default is to provide no linewrapping, and no autoindent.
  25. ; The following lines enable these features; when used in
  26. ; combination, overflow (wrapped) text will automatically
  27. ; be indented.  Nifty for editing text files. :-)
  28. (auto-indent-mode)             ; First buffer opened
  29. (set-default-mode 'indent)     ; Subsequent buffers
  30. (auto-fill-mode)               ; First buffer opened
  31. (set-default-mode 'fill)       ; Subsequent buffers
  32.  
  33.  
  34. ; Default is to query before killing any modified buffer,
  35. ; including *scratch*. Uncommenting the following line
  36. ; will disable queries for buffers with no file association.
  37. (query-save-buffers '0)
  38.  
  39.  
  40. ; Default is to query before inserting output from a subtask
  41. ; such as compile into a NotGNU buffer. The following line
  42. ; causes NotGNU to insert the output automatically, without
  43. ; query.
  44. if !DOS (query-on-subtask-done '0)
  45.  
  46.  
  47. ; Default is to highlight the background on mouse selections.
  48. ; Uncomment if you want to highlight the foreground (text) instead:
  49. ; (set-select-highlight 'f)
  50.  
  51.  
  52. ; Unix text file format specifies that only LF be used to
  53. ; indicate newline, while in DOS and Windows CR is output
  54. ; before every LF.  Default for DNOT, WNOT, NTNOT is to use
  55. ; DOS file format; uncommenting the following line will
  56. ; cause Unix format to be used instead.
  57. ; (toggle-just-write-newline)
  58.  
  59.  
  60. ; GNU-like autocompletion is not set by default; the GNU-ness
  61. ; isn't perfect yet. :(  Uncomment if you are a die-hard GNU.
  62. ; (set-gnu '1)
  63.  
  64.  
  65. ; Default autosave interval is 15 seconds.
  66. ; Let's be a little more macho than that.
  67. if !DOS (set-autosave-inc '120)
  68.  
  69.  
  70. ; The following toggles the time display in the title bar under
  71. ; Windows. Uncomment if you are using a utility like 'barclock',
  72. ; 'tick-it' etc..
  73. ; if Win3  (display-time)
  74. ; if WinNT (display-time)
  75.  
  76.  
  77. ; Various keybindings. Basic syntax:
  78. ; "\^x" is ctrl-x
  79. ; "\F1" is function key F1
  80. ; "\Eo" is alt-o (or meta-o, ESC o)
  81. ; "\Kp-+" is keypad +
  82. ; "\Backspace" is a named key
  83. ; "\SBackspace" is shift + a named key
  84. ; "\CBackspace" is control + a named key
  85. ; "\MBackspace" is alt + a named key
  86. ; See documentation for details
  87.  
  88. ; C mode map definitions
  89. (define-key C "\^c\^c"        'compile)
  90. ;(define-key C "\x`"           'next-error)
  91. ;(define-key C "\x'"           'previous-error)
  92.  
  93. ; Global key definitions
  94. (global-set-key "\F1"         'goto-line)
  95. (global-set-key "\F8"         'other-window)
  96. (global-set-key "\e+"         'enlarge-window)
  97. (global-set-key "\e-"         'shrink-window)
  98. (global-set-key "\^z"         'scroll-one-line-up)
  99. (global-set-key "\ez"         'scroll-one-line-down)
  100.  
  101. (global-set-key "\^@"         'set-mark-select)
  102. (global-set-key "\^x\^i"      'insert-file)
  103. (global-set-key "\^x!"        'shell-command)
  104. (global-set-key "\^_"         'undo)
  105.  
  106.  
  107. ; Uncommenting the following will unbind Alt-F from 'forward-word'
  108. ; (global-set-key "\efo"      'find-file)               ; Alt-F o
  109. ; (global-set-key "\efs"      'save-buffer)             ; Alt-F s
  110. ; (global-set-key "\efx"      'save-buffers-kill-emacs) ; Alt-F x
  111. ; (global-set-key "\Insert"   'set-mark-select)         ; A Demacs thing
  112.  
  113.  
  114. ; These they will fail in the DOS version because
  115. ;   (1) these are not legal DOS commands or
  116. ;   (2) fkeys beyond 10 are not visible.
  117.  
  118. if !DOS (global-set-key "\F2"         'shell-window)
  119. if !DOS (global-set-key "\F9"         'make)
  120. if !DOS (global-set-key "\F10"        'next-error)
  121. if !DOS (global-set-key "\F12"        'undo)
  122.  
  123. if !DOS (global-set-key "\^z"         'shell-window)
  124. if  DOS (global-set-key "\^z"         'shell-command)
  125.